package com.yaoran.userauth.service;

import com.yaoran.userauth.entity.Role;
import com.yaoran.userauth.utils.PageUtils;
import com.yaoran.userauth.utils.Query;

import java.util.Date;
import java.util.List;

public interface RoleService {
    void addRole(Role role, Date createTime);

    PageUtils<Role> listRole(Query query,String keyWord);

    void updateRole(Role role);

    void deleteRole(Long id);

    void deleteManyRole(Long[] ids);

    Role getRole(Long id);

    List<Role> listAllRole();
}
